SUMMARY OF COMMAND & DATA FILES
Paul R. Hensel, Gary Goertz, and Paul F. Diehl (2000)
"The Democratic Peace and Rivalries."  Journal of Politics.



LIST OF DATA FILES
� ersumgd.csv:  a comma-delimited file that includes...
--gdnumber: arbitrary Goertz/Diehl code number for this rivalry
--dyad: COW country codes for the two rivals  (AAABBB, where AAA is the
  smaller of the two numbers and BBB is the larger)
--begriv: beginning date of rivalry  (YYYYMMDD)
--endriv: ending date of rivalry  (YYYYMMDD)
--evrivgd: eventual rivalry type reached by this rivalry 
  (1=isolated conflict, 2=proto-rivalry, 3=enduring rivalry)
--gdrivdur: duration of rivalry
--gdrivmid: # of MIDs in rivalry
--gdrivwar: # of wars in rivalry
--chgdix: 0=rivalry always nondem, 1=mixed / sometimes dem, 2=always dem
--chgdixa: chgdix, except for rivalry years PLUS decade after last MID
--demchg: rivalry sometimes joint-dem, sometimes non-joint-dem
--demchga: demchg, except for rivalry years PLUS decade after last MID
--demdix2b: number of democracies at outbreak of rivalry
--demdix2e: number of democracies at end of rivalry

� erdemmid.csv:  a comma-delimited file that includes...
--gdnumber: arbitrary Goertz/Diehl code number for this rivalry
--dyad: COW country codes for the two rivals
--gdchron: chronological order of this dispute in this rivalry
  (1=1st dispute in rivalry, 2=2nd, etc.)
--dispute: COW dispute number
--begdate: beginning date of dispute  (YYYYMMDD)
--year: year that this dispute began
--enddate: ending date of dispute  (YYYYMMDD)
--evrivgd: eventual rivalry type reached by this rivalry 
  (1=isolated conflict, 2=proto-rivalry, 3=enduring rivalry)
--alhost: side A's COW level of hostility in MID  (1-5)
--blhost: side B's COW level of hostility in MID  (1-5)
--lhosta: (alhost+blhost)
--lhostm: (alhost*blhost)
--chgdix: 0=rivalry always nondem, 1=mixed / sometimes dem, 2=always dem
--chgdixa: chgdix, except for rivalry years PLUS decade after last MID
--demchg: rivalry sometimes joint-dem, sometimes non-joint-dem
--demchga: demchg, except for rivalry years PLUS decade after last MID
--demdix2: # of Dixon democracies in dyad (where "Democ">6)
--ademoc: side A's Democ score (Polity)
--aautoc: side A's Autoc score (Polity)
--bdemoc: side B's Democ score (Polity)
--bautoc: side B's Autoc score (Polity)

� erdemyr.csv:  a comma-delimited file that includes...
--gdnumber: arbitrary Goertz/Diehl code number for this rivalry
--dyad: COW country codes for the two rivals
--year: year of this observation
--evrivgd: eventual rivalry type reached by this rivalry 
  (1=isolated conflict, 2=proto-rivalry, 3=enduring rivalry)
--demdix2: # of Dixon democracies in dyad (where "Democ">6)
--chgdix: 0=rivalry always nondem, 1=mixed / sometimes dem, 2=always dem
--chgdixa: chgdix, except for rivalry years PLUS decade after last MID
--demchg: rivalry sometimes joint-dem, sometimes non-joint-dem
--demchga: demchg, except for rivalry years PLUS decade after last MID
--midyr: 1=at least one MID occurred in the rivalry during this year, 0=no
--afteryr: temporal marker  (0=this year is during an ongoing rivalry, 
    negative numbers:  pre-rivalry / number of years before rivalry onset,
    positive numbers:  post-rivalry / number of years since rivalry ending)
--rivbegyr: 1=rivalry began this year, 0=no
--rivendyr: 1=rivalry ended this year, 0=no
--rivdecad:  0=before or after rivalry, 1=1st decade of rivalry, 2=2nd or later 
    decade of rivalry
--aftdecad:  0=before or during rivalry, 1=1st decade after rivalry, 2=2nd or 
    later decade after rivalry



LIST OF COMMAND FILES
� jop1.sas:  a SAS command file that reads in the raw data files and runs the analyses to generate the output used in the six tables

� jop2.sas:  a SAS command file that reads in the relevant raw data files and generates output relevant to Table 4 and its supplements described in the text



NOTES ON ANALYSES (see jop1.sas and jop2.sas for actual SAS syntax)
� Table 1:  chi-square values were calculated by hand, based on the Polity 3 
  data set and the COW system membership list, and excluding all dyad-years 
  that were not eligible for a new rivalry onset due to a currently ongoing 
  rivalry;  details:
--overall population of system members:  46,836 dem-dem dyad-years (9.1%),
  258,629 dem-other (50.1%), 207,632 other-other (40.3%) = 515,797 total
--not eligible due to ongoing rivalry:  317 dem-dem dyad-years (4.7%),
  3041 dem-other (45.6%), 3317 other-other (49.7%) = 6675 total dyad-years
  (this excludes the initial year of each rivalry, which is eligible because 
  the rivalry wasn't ongoing yet)
--> total eligible population:  46,519 dem-dem dyad-years (9.1%),
  255,588 dem-other (50.2%), 207,015 other-other (40.7%) = 509,122 total
